package com.example.publish_model.pushorpull.adapter;

import android.view.View;
import android.widget.TextView;

import com.example.baseadapter_sdk.BaseQuickAdapter;
import com.example.baseadapter_sdk.BaseViewHolder;
import com.example.publish_model.R;
import com.tb.emoji.EmojiUtil;

import java.io.IOException;

public class PushMsgAdapter extends BaseQuickAdapter<String> {

    public PushMsgAdapter( ) {
        super(R.layout.item_push_comment);
    }

    @Override
    public void convert(BaseViewHolder holder, String item) {
        TextView view = holder.getView(R.id.item_msg_text);
        try {
            EmojiUtil.handlerEmojiText(view, item, view.getContext());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
